package com.wcs.exam.controller.api.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * Api-考试-响应对象
 * </p>
 *
 * @author wcs
 * @since 2024-07-12
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Api-考试-分页-响应对象")
public class ApiExamPageResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "考试类型(1：模拟考试、2：正式考试)")
    private Integer examType;

    @Schema(description = "考试名称")
    private String examName;

    @Schema(description = "分类ID")
    private Long categoryId;

    @Schema(description = "试卷ID")
    private Long paperId;

    @Schema(description = "考试说明")
    private String description;

    @Schema(description = "模拟考试-有效期类型(1：长期有效、2：有效天数、3：固定周期)")
    private Integer validityDateType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "模拟考试-开始时间")
    private LocalDateTime beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "模拟考试-结束时间")
    private LocalDateTime endTime;

    @Schema(description = "模拟考试-有效天数")
    private Integer days;

    @Schema(description = "销售价(单位：元，0表示免费)")
    private BigDecimal price;

    @Schema(description = "划线价(单位：元，0表示免费)")
    private BigDecimal linePrice;

    @Schema(description = "作答时长(单位：分钟)")
    private Integer answerTime;

    @Schema(description = "考试次数(单位：次，0表示无限次)")
    private Integer examCount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "正式考试-报名开始时间")
    private LocalDateTime registrationStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "正式考试-报名结束时间")
    private LocalDateTime registrationEndTime;

    @Schema(description = "正式考试-报名人数限制(0表示不限人数)")
    private Integer registrationUserLimitCount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "正式考试-考试开始时间")
    private LocalDateTime examStartTime;

    @Schema(description = "学习统计")
    private Integer countStudy;

    @Schema(description = "虚拟学习人数")
    private Integer countVirtualStudy;

    @Schema(description = "虚拟购买人数")
    private Integer countVirtualBuy;

    @Schema(description = "排序")
    private Integer sort;

    /*------------------------------------ 拓展信息 ------------------------------------*/

    @Schema(description = "报名状态(1:未开始、2:报名中、3:已结束)")
    private Integer registrationStatus;
}
